﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntityComponentSystem.Framework;
using EntityComponentSystem.Demos.SpaceAttack.Components;
using EntityComponentSystem.Demos.SpaceAttack.Systems;

namespace EntityComponentSystem.Demos.SpaceAttack.Entities
{

    class Player : Entity
    {

        protected override void OnCreateComponents()
        {
            AddComponent(new PositionComponent());
            AddComponent(new VelocityComponent());
            AddComponent(new RenderComponent("block"));
        }

        protected override void OnRegisterSystems()
        {
            GameEngine.AddToSystem<IInputSystem>(this);
            GameEngine.AddToSystem<IMovementSystem>(this);
            GameEngine.AddToSystem<IRenderSystem>(this);
        }
    }
}
